package com.woniuxy.service.other.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.dao.EndRemindMapper;
import com.woniuxy.pojo.EndRemind;
import com.woniuxy.service.other.EndRemindService;
@Service
public class EndRemindServiceImpl implements EndRemindService{

	@Autowired
	private EndRemindMapper endRemindMapper;
	@Override
	public PageInfo selectContent(Integer pn) {
		PageHelper.startPage(pn, 3);
		List<EndRemind> list = endRemindMapper.selectContent();
		PageInfo pageInfo = new PageInfo(list,3);
		return pageInfo;
	}

}
